NavigationSpec

sealed class NavigationSpec

Deprecated

This feature has been deprecated. It is recommended to use Compose Multiplatform instead.

Spec used by Navigator to determine how to perform Navigation

Inheritors

Types

Link copied to clipboard
data class Browser(val url: NSURL, val viewType: NavigationSpec.Browser.Type) : NavigationSpec

Opens the browser

Link copied to clipboard
data class Dismiss(val toDismiss: (UIViewController) -> UIViewController = { it }, val animated: Boolean = false, val completion: () -> Unit? = null) : NavigationSpec

Dismisses the parent.

Link copied to clipboard
data class DocumentSelector(val documentSelectorSettings: NavigationSpec.DocumentSelector.DocumentSelectorSettings, val documentSelectorAppearance: NavigationSpec.DocumentSelector.DocumentSelectorAppearance, val delegate: UIDocumentBrowserViewControllerDelegateProtocol, val animated: Boolean = false, val completion: () -> Unit? = null) : NavigationSpec

Presents a UIDocumentBrowserViewController

Link copied to clipboard
data class Email(val emailSettings: NavigationSpec.Email.EmailSettings, val delegate: MFMailComposeViewControllerDelegateProtocol? = null, val animated: Boolean = false, val completion: () -> Unit? = null) : NavigationSpec

Presents a MFMailComposeViewController

Link copied to clipboard
data class ImagePicker(val sourceType: UIImagePickerControllerSourceType = UIImagePickerControllerSourceType.UIImagePickerControllerSourceTypePhotoLibrary, val mediaType: Set<NavigationSpec.ImagePicker.MediaType> = setOf(MediaType.IMAGE), val navigationDelegate: UINavigationControllerDelegateProtocol, val imagePickerDelegate: UIImagePickerControllerDelegateProtocol, val animated: Boolean = false, val completion: () -> Unit? = null) : NavigationSpec

Presents a UIImagePickerController to the parent

Link copied to clipboard
data class MediaPicker(val types: Set<NavigationSpec.MediaPicker.Type>, val delegate: MPMediaPickerControllerDelegateProtocol? = null, val settings: NavigationSpec.MediaPicker.Settings = Settings(), val animated: Boolean = false, val completion: () -> Unit? = null) : NavigationSpec

Presents a MPMediaPickerController to the parent

Link copied to clipboard
data class Message(val messageSettings: NavigationSpec.Message.MessageSettings, val delegate: MFMessageComposeViewControllerDelegateProtocol, val animated: Boolean = false, val completion: () -> Unit? = null) : NavigationSpec

Presents a MFMessageComposeViewController

Link copied to clipboard
data class Nested(val type: NavigationSpec.Nested.Type = Type.Add, val containerView: UIView, val nested: () -> UIViewController, val constraints: (UIView, UIView) -> List<NSLayoutConstraint>? = null) : NavigationSpec

Adds a nested UIViewController to a container UIView.

Link copied to clipboard
data class Phone(val phoneNumber: String) : NavigationSpec

Opens the phone dialer

Link copied to clipboard
data class Pop(val to: UIViewController? = null, val animated: Boolean = true, val completion: () -> Unit? = null) : NavigationSpec

Pops the viewController on the parents UINavigationController.

Link copied to clipboard
data class Present(val animated: Boolean = true, val presentationStyle: UIModalPresentationStyle = UIModalPresentationAutomatic, val transitionStyle: UIModalTransitionStyle = UIModalTransitionStyleCoverVertical, val present: () -> UIViewController, val completion: () -> Unit? = null) : NavigationSpec

Lets the parent present a UIViewController using UIViewController.presentViewController.

Link copied to clipboard
data class Push(val animated: Boolean = true, val push: () -> UIViewController, val completion: () -> Unit? = null) : NavigationSpec

Navigates to a new view controller by pushing it on top of the parents UINavigationController

Link copied to clipboard
data class Segue(val identifier: String) : NavigationSpec

Triggers a segue with a given identifier on the parent

Link copied to clipboard
data object Settings : NavigationSpec

Opens the Phone settings

Link copied to clipboard
data class Show(val detail: Boolean = false, val show: () -> UIViewController) : NavigationSpec

Lets the parent show a UIViewController using UIViewController.showViewController

Link copied to clipboard

Opens the AppStore for a given productId